export default function (title) {
    const titleDom = document.head.querySelector("title");

    if(titleDom) {
        titleDom.innerText = title;
    }else{
        const title = document.createElement("title");
        title.innerText = title;
        document.head.appendChild(title);
    }
}